FROM ubuntu:22.04

ARG CANGJIE_VERSION=1.0.1
ENV CANGJIE_HOME=/usr/local/cangjie

COPY sdk/cangjie-sdk-linux-aarch64-1.0.1.tar.gz /tmp/cangjie.tar.gz

RUN apt-get update && apt-get install -y build-essential
RUN tar -xzf /tmp/cangjie.tar.gz -C /usr/local/ \
    && rm /tmp/cangjie.tar.gz

ENV CANGJIE_HOME=/usr/local/cangjie
ENV PATH="$CANGJIE_HOME/bin:$PATH"


CMD ["bash"]
